package edu.whu.demo.repository;

import edu.whu.demo.entity.Product;
import edu.whu.demo.entity.Supplier;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface productRepo extends JpaRepository<Product,Long> {
//    @Query(value = "select * from Product.suppliers")
//    public List<Supplier>findSupById(@Param("p_id")long id);

}
